package com.wanma.recuit.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanma.recuit.mapper.DictionaryMapper;
import com.wanma.recuit.pojo.Dictionary;
import com.wanma.recuit.service.DictionaryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class DictionaryServiceImpl implements DictionaryService {
    @Resource
    private DictionaryMapper dictionaryMapper;

    @Override
    public void insert(Dictionary object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Dictionary object) {

    }

    @Override
    public Dictionary findById(Integer id) {
        return null;
    }

    @Override
    public List<Dictionary> findAll() {
        return null;
    }

    @Override
    public PageInfo<Dictionary> findPage(int pageNum, int pageSize) {
        return null;
    }


    @Override
    public Dictionary findUserSate() {
        return dictionaryMapper.selectByName("求职状态");
    }

    @Override
    public Dictionary findSalary() {
        return dictionaryMapper.selectByName("薪资范围");
    }

    @Override
    public Dictionary findKind() {
        return dictionaryMapper.selectByName("工作性质");
    }

    @Override
    public Dictionary findEducation() {
        return dictionaryMapper.selectByName("学历");
    }

    @Override
    public Dictionary findFulltime() {
        return dictionaryMapper.selectByName("是否统招");
    }

    @Override
    public Dictionary findExperience() {
        return dictionaryMapper.selectByName("最低工作经验");
    }

    @Override
    public List<Dictionary> findList() {
        return dictionaryMapper.selectList();
    }




}
